package com.sebastian.studies.ch2;

import java.util.Scanner;

public class Excercise_2_1 {

	public static void main(String[] args) {

		System.out.println("Converting currencies PL to Euro");

		Scanner input = new Scanner(System.in);
		double exchangeRate;
		double euro;

		System.out.println("What is current exchange rate (1 euro is..)?: \n");
		exchangeRate = input.nextDouble();
		System.out.println("The current exchange rate is: " +  exchangeRate + "PLN for 1 euro\n");

		System.out.println("How much euro would you like to exchange?: ");
		euro = input.nextInt();
		System.out.println("Euro: " + euro + 
			"\nPLN: " + (euro * exchangeRate));
		
		input.close();
	}

}
